package com.atguigu.gulimall.product.service;

import com.atguigu.gulimall.product.entity.BrandEntity;
import com.baomidou.mybatisplus.extension.service.IService;
import com.atguigu.common.utils.PageUtils;
import com.atguigu.gulimall.product.entity.CategoryBrandRelationEntity;

import java.util.List;
import java.util.Map;

/**
 * 品牌分类关联
 *
 * @author liuShiYu
 * @email 2426237645@qq.com
 * @date 2025-03-12 19:07:21
 */
public interface CategoryBrandRelationService extends IService<CategoryBrandRelationEntity> {

    PageUtils queryPage(Map<String, Object> params);

    /**
     * 根据分类id获取品牌信息***
     * @param catId
     * @return
     */
    List<BrandEntity> getBrandsByCatId(Long catId);
    /**
     * 更新品牌信息***
     * @param brandId
     * @param name
     */
    void updateBrand(Long brandId, String name);

    /**
     * 更新分类信息***
     * @param catId
     * @param name
     */
    void updateCategory(Long catId, String name);

    /**
     * 保存*****
     */
    void saveDetail(CategoryBrandRelationEntity categoryBrandRelation);
}

